package com.cherry.basic.demo.service.impl;

import com.cherry.basic.demo.service.IAccountService;

import java.util.Date;

/**
 * 依赖注入，set方式
 */
public class AccountServiceImpl2 implements IAccountService {

    private String name;
    private Integer age;
    private Date birthday;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public void saveAccount() {
        System.out.println("我被创建了===" + "name=" + name + ",age=" + age + ",birthday=" + birthday);
    }


}
